#!/usr/bin/python
for i in range(1,10):
    for n in range(1,i):
        print("{0} * {1} = {2}".format(i,n,i*n)),
    print("\n")
